package com.easonji.attendance.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 加班
 * </p>
 *
 * @author easonji
 * @since 2018-09-27
 */

@TableName("att_overtime")

public class Overtime extends Model<Overtime> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ot_id", type = IdType.AUTO)
    private Integer otId;

    @NotEmpty(message = "加班开始时间不能为空")
    @TableField("ot_str_date")
    private String otStrDate;

    @NotEmpty(message = "加班结束时间不能为空")
    @TableField("ot_end_date")
    private String otEndDate;

    @TableField("ot_user")
    private Integer otUser;

    @TableField("ot_state")
    private Integer otState;

    @NotEmpty(message = "加班原因不能为空")
    @TableField("ot_memo")
    private String otMemo;

    @TableField("ot_create_user")
    private Integer otCreateUser;

    @TableField("ot_create_date")
    private Date otCreateDate;

    @TableField("ot_update_user")
    private Integer otUpdateUser;

    @TableField("ot_update_date")
    private Date otUpdateDate;

    @TableField("ot_next_auditor")
    private Integer otNextAuditor;

    @TableField("ot_use_type")
    private Integer otUseType;

    public Integer getOtUseType() {
        return otUseType;
    }

    public void setOtUseType(Integer otUseType) {
        this.otUseType = otUseType;
    }

    public Integer getOtNextAuditor() {
        return otNextAuditor;
    }

    public void setOtNextAuditor(Integer otNextAuditor) {
        this.otNextAuditor = otNextAuditor;
    }

    public Integer getOtId() {
        return otId;
    }

    public void setOtId(Integer otId) {
        this.otId = otId;
    }
    public String getOtStrDate() {
        return otStrDate;
    }

    public void setOtStrDate(String otStrDate) {
        this.otStrDate = otStrDate;
    }
    public String getOtEndDate() {
        return otEndDate;
    }

    public void setOtEndDate(String otEndDate) {
        this.otEndDate = otEndDate;
    }
    public Integer getOtUser() {
        return otUser;
    }

    public void setOtUser(Integer otUser) {
        this.otUser = otUser;
    }
    public Integer getOtState() {
        return otState;
    }

    public void setOtState(Integer otState) {
        this.otState = otState;
    }
    public String getOtMemo() {
        return otMemo;
    }

    public void setOtMemo(String otMemo) {
        this.otMemo = otMemo;
    }
    public Integer getOtCreateUser() {
        return otCreateUser;
    }

    public void setOtCreateUser(Integer otCreateUser) {
        this.otCreateUser = otCreateUser;
    }
    public Date getOtCreateDate() {
        return otCreateDate;
    }

    public void setOtCreateDate(Date otCreateDate) {
        this.otCreateDate = otCreateDate;
    }
    public Integer getOtUpdateUser() {
        return otUpdateUser;
    }

    public void setOtUpdateUser(Integer otUpdateUser) {
        this.otUpdateUser = otUpdateUser;
    }
    public Date getOtUpdateDate() {
        return otUpdateDate;
    }

    public void setOtUpdateDate(Date otUpdateDate) {
        this.otUpdateDate = otUpdateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.otId;
    }

    @Override
    public String toString() {
        return "Overtime{" +
        "otId=" + otId +
        ", otStrDate=" + otStrDate +
        ", otEndDate=" + otEndDate +
        ", otUser=" + otUser +
        ", otState=" + otState +
        ", otMemo=" + otMemo +
        ", otCreateUser=" + otCreateUser +
        ", otCreateDate=" + otCreateDate +
        ", otUpdateUser=" + otUpdateUser +
        ", otUpdateDate=" + otUpdateDate +
        "}";
    }
}
